package com.weigee.ktv.view.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.linde.library.util.DisplayUtil
import com.linde.library.util.ToastUtil
import com.weigee.ktv.R
import kotlinx.android.synthetic.main.frag_wallet_safety_settings.*
import kotlinx.android.synthetic.main.include_status_bar_height.*
import kotlinx.android.synthetic.main.include_title_bar.*

/**
 * Created by linde on 2017/6/16.
 * <p/>
 */
class WalletSafetySettingsFragment : BaseFragment()
{
    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View?
    {
        return inflater?.inflate(R.layout.frag_wallet_safety_settings, container, false)
    }

    override fun onViewCreated(view: View?, savedInstanceState: Bundle?)
    {
        super.onViewCreated(view, savedInstanceState)
        DisplayUtil.setStatusBarHeight(linear_status_bar_height)
        my_title_bar.title = "安全设置"
        my_title_bar.leftIconClickBack = activity

        item_modify_password?.setOnClickListener { v ->
            ToastUtil.show(v, "修改支付密码")
        }
        item_get_back_password?.setOnClickListener { v ->
            ToastUtil.show(v, "找回支付密码")
        }
    }
}